package com.chris.seata_app.controller;

import com.chris.seata_app.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wujf
 * @date 2022/1/20
 */
@RestController
public class TestController {

    @Autowired
    private TestService testService;

    @GetMapping("/test01")
    public String test01() {
        boolean b = testService.test01();
        if (b) {
            return "成功";
        }
        return "失败";
    }

}
